<p class="commentsListTitle">评论列表：</p>

{{#if comments}}

    <ul class="list commentsList">
    {{#each comments as |comment|}}
        <li>
            <dl class="user">
                <dt>
                    <a href="/user/{{comment.user.name}}"><img src="/images/faces/{{comment.user.face}}" alt=""></a>
                </dt>
                <dd>
                    <p><a href="/user/{{comment.user.name}}">{{comment.user.name}}</a>&emsp;<span>{{comment.time}}</span></p>
                    <div>{{comment.comment}}</div>
                </dd>
            </dl>
        </li>
    {{/each}}
    </ul>

{{else}}
    <div class="noData">没有数据。。。</div>
{{/if}}


<form method="post" class="commentForm">
    <div class="title">发表评论：</div>
    {{#if user}}
        姓名：<span>{{user.name}}</span><input type="hidden" name="name" value="{{user.name}}"/><br>
        邮箱：<span>{{user.email}}</span><input type="hidden" name="email" value="{{user.email}}"/><br>
        <br>
        <textarea name="content" cols="80" rows="10"></textarea>
        <br>
        <input type="submit" value="评论"/>
    {{else}}
        <p>请先<a href="/login?refer={{refer}}">登录</a>后，再评论</p>
    {{/if}}
</form>